package main

import (
	"encoding/json"
	"fmt"
	"zhiq/algorithm/binary_search/lib"
)

func main() {
	var arr []int = []int{1, 2, 3, 4, 5, 6}
	searchVal := 5
	res := lib.BinarySearch(arr, searchVal)
	fmt.Printf("需要查找的值在第 %v 个位置 \n", res)

	var m = make([]*int, 0)
	v, _ := json.Marshal(m)
	fmt.Println(string(v))
	fmt.Printf("%#v", string(v))
}
